package annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created by feng on 16/7/12.
 * define the column constraint of string type
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface SQLString {
    int value() default 0; // 注意此处,如果想使用快捷赋值方式,则此处元素名必须为value

    String name() default "";

    Constraints constraint() default @Constraints;
}
